import request from '@/utils/request'

export const VehicleTypeSeatApi = {
    /**
     *  城市列表
     * @returns
     */
    getList: (vehicleTypeId) => {
        return request({
            url: '/manage/user/vehicleTypeSeat/getList',
            params:{vehicleTypeId},
            method: 'get'
        })
    },
    /**
     *  更新排序
     * @returns
     */
    updateSort: (data) => {
        return request({
            url: '/manage/user/vehicleTypeSeat/updateSort',
            data,
            method: 'post'
        })
    },
    /**
     *  更新状态
     * @returns
     */
    updateStatus: (data) => {
        return request({
            url: '/manage/user/vehicleTypeSeat/updateStatus',
            data,
            method: 'post'
        })
    },
    /**
     *  删除
     * @returns
     */
    delete: (vehicleTypeSeatId) => {
        return request({
            url: '/manage/user/vehicleTypeSeat/delete',
            params: {
                vehicleTypeSeatId
            },
            method: 'get'
        })
    },

    /**
     *  获取详细信息
     * @returns
     */
    getInfoById: (vehicleTypeSeatId) => {
        return request({
            url: '/manage/user/vehicleTypeSeat/getInfoById',
            params: {
                vehicleTypeSeatId
            },
            method: 'get'
        })
    },

    /**
     *  更新
     * @returns
     */
    update: (data) => {
        return request({
            url: '/manage/user/vehicleTypeSeat/update',
            data,
            method: 'post'
        })
    },

    /**
     *  插入
     * @returns
     */
    insert: (data) => {
        return request({
            url: '/manage/user/vehicleTypeSeat/insert',
            data,
            method: 'post'
        })
    },
}
